package com.coffee.daili.api.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.daili.api.query.DailiMerchantSkuQuery;
import com.coffee.daili.api.req.DailiMerchantSkuListReq;
import com.coffee.daili.api.result.DailiMerchantSkuResult;
import com.coffee.sku.api.sku.result.MerchantSkuListResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface DailiMerchantSkuService {

	Page<DailiMerchantSkuResult> getPager(DailiMerchantSkuQuery param, PagerInfo pr);
	
	Integer count(DailiMerchantSkuQuery param);
	
	DailiMerchantSkuResult getDetail(Integer id);
	
	List<DailiMerchantSkuResult> getList(DailiMerchantSkuQuery param, PagerInfo pr);
	
	List<DailiMerchantSkuResult> getList(DailiMerchantSkuQuery param);
	
	List<DailiMerchantSkuResult> getList();

	void delete(Integer id);

	void addOrUpdate(DailiMerchantSkuResult result)throws BusinessException;
	
	Map<Integer, DailiMerchantSkuResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer, DailiMerchantSkuResult> getItemMap();

	Page<MerchantSkuListResult> findMerchantSkuList(DailiMerchantSkuListReq param, PagerInfo pr);
	
}